import { Injectable } from '@angular/core';
import { Menu, MenuLS, MenuItem } from '../app/utils/menu';

import { AuthorizeApirequest } from '../ApiRequest/Authorize.Apirequest';
import { setLocalItem } from '../app/utils';
@Injectable()
export class LoginService {

  constructor(
    private authorizeApirequest: AuthorizeApirequest
  ) { }

  async login(UserName: string, Password: string) {
    let token = await this.authorizeApirequest.auth(UserName, Password);
    setLocalItem('yeezsoft_configmanage_token', token);
  }

}